﻿using Tauren.Form.Entity.Config;
using Tauren.Form.Service.Base;

namespace Tauren.Form.Service.Form_TableInfoBLL
{
    public interface IForm_TableInfoService:IBaseService
    {
 
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        IResponseMessage Pages(Entity.Global.QueryModel queryModel);

        /// <summary>
        /// 获取表单字段
        /// </summary>
        /// <param name="PageType"></param>
        /// <returns></returns>
        IResponseMessage Config(string PageType);

        /// <summary>
        /// 获取单个数据信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        IResponseMessage FirstOrDefault(long id);

        /// <summary>
        /// 新增数据
        /// </summary>
        /// <returns></returns>
        IResponseMessage Add(Entity.Input.Form_TableInfo_InPut data);

        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        IResponseMessage Edit(Entity.Input.Form_TableInfo_InPut data);

        /// <summary>
        /// 主键数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Delete(long AutoID);
        /// <summary>
        /// 禁用数据
        /// </summary>
        /// <param name="AutoID"></param>
        /// <returns></returns>
        IResponseMessage Enable(long AutoID);

        /// <summary>
        /// 获取子表数据
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        IResponseMessage Childs(Entity.Global.QueryModel queryModel);
    }
}
